package com.example.exp2;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@SuppressWarnings("unused")
@ConfigurationProperties(prefix = "exp2.auto")
public class CustomProperties {
    /**
    * 自动配置类Exp2AutoConfig是否生效*/
    private boolean enable;

    public boolean isEnable(){
        return enable;
    }

    public void setEnable(boolean enable){
        this.enable=enable;
    }
}
